{#**
*
* 功能描述（信息模板）
*
* @author suoya <jlusuoya@gmail.com>
* @version 1
*#}
{#include file="header.tpl" title="title" active="comment" #}
{#include file="define.tpl" scope=parent#}
<div class="content middle">
    <div class="ui breadcrumb">
        <a class="section" href="index.php">主页</a>
        <i class="right"></i>
        <span class="active section">评价管理</span>
    </div>
    {#include file="search_bar_v2.tpl"
		s_basic = [
			'size'=>[0, '商品规格：', $size_all],
			'whole'=>[9, '购买体验：', $score_all],
			'taste'=>[9, '蛋糕口味：', $score_all],
			'service'=>[9, '送货服务：', $score_all]
		]
		s_vdate=['c_start'=>'起始日期：', 'c_end'=>'终止日期：']
		s_keys=['goods_id'=>'商品ID', 'username'=>'用户名', 'user_id'=>'用户ID', 'content'=>'评论内容']
                s_checkbox=['visible'=>[1,'显示状态']]#}
    <table id="cakeComment" class="ui table segment">
        <thead>
            <tr>
                <th>商品ID</th>
                <th>规格</th>
                <th>商品版本</th>
                <th>用户名</th>
                <th>评价内容</th>
                <th>评价时间</th>
                <th>蛋糕口味</th>
                <th>送货服务</th>
                <th>购买体验</th>
                <th>是否可见</th>
            </tr>
        </thead>
        <tbody>
            {#foreach $listdata as $item#}
                <tr>
                    <td>{#$item['goods_id']#}</td>
                    <td>{#$item['size']#}</td>
                    <td>{#$item['version']#}</td>
                    <td><a href="#" onclick="return showuser({#$item['user_id']#})">{#$item['username']#}</a></td>
                    <td><span class='introduce'>{#$item['content']#}</span></td>
                    <td>{#$item['createtime']#}</td>
                    <td>{#$item['taste']#}</td>
                    <td>{#$item['service']#}</td>
                    <td>{#$item['whole']#}</td>
					<td>
					<select onchange="ajax_value(this, 'index.php?action=comment.setvisible&id={#$item['id']#}&visible=')">
					{#foreach $yesno as $k => $v#}
						<option value="{#$k#}"{#if $item['visible'] == $k#}selected=true{#/if#}>{#$v#}</option>
					{#/foreach#}
					</select>
					</td>
                </tr>
            {#/foreach#}
        </tbody>
        <tfoot>
            <tr>
                <th colspan="12" style="font-style: normal;">
                    {#include file="paging_bar.tpl"#}
                </th>
            </tr>
        </tfoot>
    </table>
</div>
{#include file="footer.tpl" #}
